//
//  EMMConstant.h
//  EMMApp
//
//  Created by Mac on 16/4/25.
//  Copyright © 2016年 YiXun. All rights reserved.
//

#import <Foundation/Foundation.h>

/*******************************        测试环境设置         *************************/
#ifdef DEBUG

//Dev环境
//#define apiBaseUrl @"http://192.168.16.187:8086/emm-openapi"    //测试
//UAT
#define apiBaseUrl @"http://m2.openapi.uat.qiaofangyun.com/emm-openapi" //UAT环境

//开发时数据全部打印出来
//#define NSLog(FORMAT, ...) fprintf(stderr, "%s:%ld\t%s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat: FORMAT, ## __VA_ARGS__] UTF8String]);


#define IS_DEFBUG YES
/*******************************        线上环境设置         *************************/
#else

//生产地址
#define apiBaseUrl @"http://m2.openapi.qiaofangyun.com/emm-openapi"

//上线的时候数据不输出
#define NSLog(FORMAT, ...) nil

#define IS_DEFBUG NO

#endif

//版本号
#define apiVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]

#define apiVString [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

//商户
#define merchantCode @"me10001"

#define cdUrl @""


#define IS_iOS8 [[UIDevice currentDevice].systemVersion floatValue] >= 8.0f

#define IS_iOS6 [[UIDevice currentDevice].systemVersion floatValue] >= 6.0f

static const CGFloat MJDuration = 2.0;
